home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 327 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.uidaho.edu!usenet
  2. From: dickow@raven.csrv.uidaho.edu (dickow)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: AmiTCP and "hostname" problems
  5. Date: 8 Jan 1996 23:14:42 GMT
  6. Organization: University of Idaho, Moscow, Idaho
  7. Distribution: world
  8. Message-ID: <1334.6581T919T751@raven.csrv.uidaho.edu>
  9. References: <917.6578T630T569@mindlink.bc.ca>
  10. NNTP-Posting-Host: xslip73.csrv.uidaho.edu
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=US-ASCII
  13. Content-Transfer-Encoding: 7bit
  14. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  15.  
  16.  
  17. >Does anyone know what the function of the "hostname" program in amitcp is?
  18.  
  19. >(Amitcp 4.0 demo, in bin/hostname)
  20.  
  21. >My startnet script seems to hang occasionally at the line:
  22.  
  23. >         setenv HOSTNAME `AmiTCP:bin/hostname`
  24.  
  25. >It simply sits there doing nothing.  WHen it eventually times out, I can't
  26. >do anything like "ping" my server, etc.
  27.  
  28. The Hostname cmd in AmiTCP:bin prints out the string that represents YOUR
  29. machine's alias name, with domain name too, as (usually) dynamically assigned
  30. during negotiation with your server. You can use this command to find out
  31. your own machine's address 'alias' in order to reach your own machine, for
  32. instance, if you, say, telnet to one of your shell accounts and then want to
  33. ftp a file back to your home machine.
  34.  
  35. Now, the AmiTCP setup I use creates the HOSTNAME environment variable such
  36. that it actually calls this AmiTCP:/bin program of the same name. Not long
  37. ago, however, I discovered some 'other' TCP client software ('mail' or
  38. 'sendmail'...can't remember) that expected the env variable to be a copy of
  39. the string, not the command reference. You might check to see if other
  40. programs want an environment variable with the same name but different format.
  41.  
  42. **************************************//*
  43. *  Bob Dickow  (dickow@uidaho.edu) \\// *
  44. *****************************************
  45.  
  46.